<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>结果页</title>
<script src="${ctx }/js/artDialog.js?skin=gray"></script>
<script src="${ctx }/js/artDialog.iframeTools.js"></script>
</head>
<body>

<div style="margin: 0 auto;font-family: 宋体;font-size: 14px;">
	<div style="color: #ff0000;margin-top: 100px;text-align: center;">
		<c:choose>
			<c:when test="${requestScope.returnMsg != null }">
				${requestScope.returnMsg }
			</c:when>
			<c:otherwise>操作失败</c:otherwise>
		</c:choose>
	</div>
	<div id="remain_time" style="margin:50px 0px 0px 0px;text-align: center;"></div>
</div>

<script type="text/javascript">

var sm = 3;
function closeit(){

	 setInterval("f();",1000);
	 setTimeout( "closeWin()",sm*1000);   //单位是毫秒，这里是r秒 

}

function f(){
    document.getElementById("remain_time").innerText= "还有 "+sm+ "秒窗口自动关闭！ ";     
    sm--; 
} 

function closeWin(){

	 var origin = art.dialog.open.origin;//得到原页面对象
	 var top_href = top.location.href;
	 origin.document.location.href = top_href;

	art.dialog.close();
}

window.onload = closeit;
</script>
</body>
</html>